﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Globalization;
using System.Text;
using System.Web.Services;

public partial class car_insurance_thankyou : System.Web.UI.Page
{
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            lblThanksTitle.Text = Resources.CarMenu.ThankYou;
            //ibtnNewQuote.ImageUrl = Resources.CarMenu.ButtonNewQuoteUrl;
            if (!IsPostBack)
            {
                CE.Global.General.ClearAllSession(this.Page, "CI");
                lblMessage1.Text = Resources.CarMenu.EmailQuoteMessage;
                lblMessage2.Text = Resources.CarMenu.HotLineMessage;
                if (Request.QueryString["email"] != null && Request.QueryString["email"].ToString() != string.Empty)
                {
                    if (Request.QueryString["email"].ToString() == "1")
                    {
                        lblMessage1.Text = Resources.CarMenu.AppMessage;
                    }
                }
            }
        }
    }

    //protected void ibtnNewQuote_Click(object sender, ImageClickEventArgs e)
    //{
    //    CE.Global.General.ClearAllSession(this.Page, "CI");
    //    Response.Redirect("car-quote.aspx");
    //}

}
